package com.xiyu.service.errorCode.mailbox;

import com.xiyu.service.framework.exception.ErrorCode;

/**
 * mailboxAccount 错误码枚举类
 *
 * mailboxAccount 邮箱账号，使用 1003601000段
 */
public interface PostOfficeErrorCode {
    Integer ERROR_CODE_START_CODE = 1003601000;

    ErrorCode POST_OFFICE_PASSWORD_ERROR = new ErrorCode(ERROR_CODE_START_CODE + 1, "邮箱账号或密码错误，请检查后重试。");
    ErrorCode POST_OFFICE_CONNECT_ERROR = new ErrorCode(ERROR_CODE_START_CODE + 2, "邮件服务器连接失败，请检查网络或服务器设置。");
    ErrorCode POST_OFFICE_CLOSE_ERROR = new ErrorCode(ERROR_CODE_START_CODE + 3, "关闭连接时发生错误");
    ErrorCode POST_OFFICE_FOLDER_NAME_TO_LONG = new ErrorCode(ERROR_CODE_START_CODE + 3, "邮局文件夹名过长或路径嵌套太多");
    ErrorCode POST_OFFICE_SYNC_FOLDER_ERROR = new ErrorCode(ERROR_CODE_START_CODE + 4, "同步文件夹失败，失败原因：{}");
    ErrorCode POST_OFFICE_GET_DEFAULT_FOLDER_ERROR = new ErrorCode(ERROR_CODE_START_CODE + 5, "获取文件夹列表失败");
    ErrorCode POST_OFFICE_POP_NOT_HANDLE_FOLDER = new ErrorCode(ERROR_CODE_START_CODE + 6, "POP协议的邮箱不支持文件夹操作");
    ErrorCode POST_OFFICE_PARENT_FOLDER_NOT_EXISTS = new ErrorCode(ERROR_CODE_START_CODE + 7, "父文件夹不存在");
    ErrorCode POST_OFFICE_PARENT_FOLDER_EMPTY = new ErrorCode(ERROR_CODE_START_CODE + 8, "父文件夹的路径为空");
    ErrorCode POST_OFFICE_PARENT_FOLDER_GET_ERROR = new ErrorCode(ERROR_CODE_START_CODE + 8, "无法获取邮局父文件夹");
    ErrorCode POST_OFFICE_GET_FOLDER_ERROR = new ErrorCode(ERROR_CODE_START_CODE + 9, "获取邮局文件夹失败");
    ErrorCode POST_OFFICE_CREATE_FOLDER_FAIL = new ErrorCode(ERROR_CODE_START_CODE + 10, "创建邮局文件夹失败");
    ErrorCode POST_OFFICE_RENAME_FOLDER_FAIL = new ErrorCode(ERROR_CODE_START_CODE + 11, "重命名邮局文件夹失败");
    ErrorCode POST_OFFICE_EXISTS_DUP_FOLDER = new ErrorCode(ERROR_CODE_START_CODE + 12, "已存在重复的邮局文件夹");
    ErrorCode POST_OFFICE_DELETE_FOLDER_ERROR = new ErrorCode(ERROR_CODE_START_CODE + 13, "删除邮局文件夹失败");
    ErrorCode POST_OFFICE_RECEIVE_MAIL_ERROR = new ErrorCode(ERROR_CODE_START_CODE + 14, "接收邮件失败");
    ErrorCode POST_OFFICE_RECEIVE_FOLDER_MAIL_ERROR = new ErrorCode(ERROR_CODE_START_CODE + 15, "获取文件夹下邮件失败");
    ErrorCode POST_OFFICE_GET_MAIL_INFO_ERROR = new ErrorCode(ERROR_CODE_START_CODE + 16, "获取邮件{}失败");
    ErrorCode POST_OFFICE_FOLDER_NAME_EMPTY = new ErrorCode(ERROR_CODE_START_CODE + 17, "邮局文件夹的路径为空");
    ErrorCode POST_OFFICE_FOLDER_GET_COUNT_ERROR = new ErrorCode(ERROR_CODE_START_CODE + 18, "邮局文件夹获取邮件数量失败");
    ErrorCode POST_OFFICE_POP_NOT_MOVE_MAIL = new ErrorCode(ERROR_CODE_START_CODE + 19, "POP协议的邮箱不支持移动邮件");
    ErrorCode POST_OFFICE_POP_NOT_DELETE_MAIL = new ErrorCode(ERROR_CODE_START_CODE + 20, "POP协议的邮箱不支持删除邮件");
    ErrorCode POST_OFFICE_OPEN_FOLDER_ERROR = new ErrorCode(ERROR_CODE_START_CODE + 21, "打开邮局文件夹失败");
    ErrorCode POST_OFFICE_CLOSE_FOLDER_ERROR = new ErrorCode(ERROR_CODE_START_CODE + 22, "关闭邮局文件夹失败");
    ErrorCode POST_OFFICE_SET_FLAG_ERROR = new ErrorCode(ERROR_CODE_START_CODE + 23, "标记邮局文件夹失败");
    ErrorCode POST_OFFICE_GET_MESSAGE_ERROR = new ErrorCode(ERROR_CODE_START_CODE + 24, "获取邮局邮件内容失败");
    ErrorCode POST_OFFICE_MOVE_MESSAGE_ERROR = new ErrorCode(ERROR_CODE_START_CODE + 25, "移动邮局邮件失败");
    ErrorCode POST_OFFICE_DELETE_MESSAGE_ERROR = new ErrorCode(ERROR_CODE_START_CODE + 26, "删除邮局邮件失败");
    ErrorCode POST_OFFICE_SEND_MESSAGE_ERROR = new ErrorCode(ERROR_CODE_START_CODE + 27, "发送邮件失败，失败原因：{}");
    ErrorCode POST_OFFICE_GET_MESSAGE_UID_ERROR = new ErrorCode(ERROR_CODE_START_CODE + 28, "获取邮局邮件UID失败");
    ErrorCode POST_OFFICE_UPDATE_NEW_MAIL_ERROR = new ErrorCode(ERROR_CODE_START_CODE + 29, "更新发送邮件出现错误");
}
